﻿function timetostr(str) {
    var date = new Date(str);

    return date.toLocaleString();
}
function Execute(type, url, paramname, param, callback) {
    $.ajax({
        type: type,
        url: url,
        dataType: "json",
        data: { paramname: param },
        success: function (data) {
            callback(data);
        }, error: function (x) {
            console.log('error');
        }, complete: function () {
        
        }
    })
}